Only reorder tabs if the focus is in the tab. (#350342, Carlos Garnacho
authorMatthias Clasen <mclasen@redhat.com>
Sun, 8 Oct 2006 19:00:31 +0000 (19:00 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sun, 8 Oct 2006 19:00:31 +0000 (19:00 +0000)
2006-10-08 Matthias Clasen <mclasen@redhat.com>

* gtk/gtknotebook.c (gtk_notebook_reorder_tab): Only
reorder tabs if the focus is in the tab.  (#350342, Carlos
Garnacho Parro)

ChangeLog
gtk/gtknotebook.c

index 89983c3cbfcda94df2fc04a418c3f5f481ad73b7..a8e8c9acad478fa19fda0c215325cc94f747b3c9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-10-08 Matthias Clasen <mclasen@redhat.com>
+
+       * gtk/gtknotebook.c (gtk_notebook_reorder_tab): Only
+       reorder tabs if the focus is in the tab.  (#350342, Carlos
+       Garnacho Parro)
+
 2006-10-08 Michael Emmel <mike.emmel@gmail.com>
 
        * gdk/directfb/gdkproperty-directfb.c strdup atom name (#357611) 
index d5a9b8a592e75e243c0e03c78b615beea47f73e1..240d4bb8f3612d3bbdfead1ae5514fe7e58c4e6a 100644 (file)
@@ -1231,6 +1231,9 @@ gtk_notebook_reorder_tab (GtkNotebook      *notebook,
   GList *last, *child;
   gint page_num;
 
+  if (!gtk_widget_is_focus (GTK_WIDGET (notebook)))
+    return;
+
   if (!notebook->cur_page ||
       !notebook->cur_page->reorderable)
     return;